package define

import (
	"github.com/golang-jwt/jwt/v4"
	"os"
)

type UserClaim struct {
	Id       int
	Identity string
	Name     string
	jwt.StandardClaims
}

var JwtKey = "cloud-disk-key"

var MailPassword = "QAnSUvzNPaL6awmY"

// 验证码长度
var Codelength = 6

// 验证码过期时间（s）
var CodeExpire = 300

// 腾讯云对象存储
var TencentSecretKey = os.Getenv("secretKey")
var TencentSecretID = os.Getenv("secretID")

//9MXZTFveLsIe5Toz41verFbotqhkdLC3
//AKID9UpAxmT1hI1njpu8XvETqEmV9ctyqVhv

var CosBucket = "https://tommy-1333560025.cos.ap-guangzhou.myqcloud.com"

// MinIOAccessKeyID minio配置
var MinIOAccessKeyID = "XjaL5UWycwCz0jw1VVIw"
var MinIOAccessSecretKey = "bCiCHZ6kL9XLDUJ7LSaBAN2CayEl9u22Z8QetE5k"
var MinIOEndpoint = "localhost:9000"
var MinIOBucket = "cloud-disk"

// PageSize分页的默认参数
var PageSize = 20

var Datetime = "2006-01-02 15:04:05"

var TokenExpire = 3600

var RefreshTokenExpire = 7200
